<template>
  <div class="hello">
    hello
    <button @click="goHi('/hi')">gohi</button>
    <button @click="goHi('/world')">goworld</button>
    <router-link to="/pdfTest">前往pdf测试</router-link>
  </div>
</template>

<script>
  import dd from 'dd'
  const hello = {
    data () {
      return {

      }
    },
    methods:{
      goHi(url){
        this.$router.push({path:url})
      }
    },
    created(){

    }
  }

  export default dd.component(hello)
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h1, h2 {
  font-weight: normal;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
